home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0195.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  918 b   |  46 lines

  1. On Thu, 19 Jan 1995, jason.wroe wrote:
  2.  
  3. > First of all Hi again from Jay :)
  4. > Second how are Amos sprite banks stored?
  5. >
  6.  
  7.   Okay this is from memory so be careful...
  8.  
  9.     dc.b AmSp   <-- Heh I'm a Sprite Bank?
  10.         dc.w length <-- # Of Sprites
  11.       FOR I=1 to LENGTH
  12.     dc.w  depth
  13.     dc.w  width  (in words ie. width*16=pixels)
  14.     dc.w  height
  15.     dc.w  x_hot
  16.     dc.w  y_hot
  17.     dc.b  image_data -> size = depth*(width*16)*height/8
  18.       NEXT I
  19.  
  20.       if the Sprite is empty -> depth = 0
  21.  
  22.  
  23.  
  24.  
  25. > I want to know this because I want either a C program or an Amos program
  26. > to convert an Amos sprite bank into a format that a C program could
  27. > read and display the sprites.
  28. > The sprite are just 16x16 pixels and in 32 colours !
  29. > Is it possible to do this in either C or AMOS?
  30.  
  31.    yes... both...
  32.  
  33.                         mike
  34.  
  35. >    _/ _/ _/   _/   _/   _/
  36. >      _/     _/ _/  _/ _/
  37. >     _/    _/ _/_/   _/
  38. >  _/_/   _/     _/  _/
  39.  
  40.